package com.fortune.dto.in.clientOrder;

import java.util.List;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import io.swagger.annotations.ApiModelProperty;
public class ClientOrderEditDto {
	@NotBlank(message="订单id不能为空")
	@ApiModelProperty(required=true, example="订单id")
	private String id;
	@NotEmpty(message="商品列表不能为空")
	private List<AddProduct> products;
	@NotBlank(message="客户id不能为空")
	@ApiModelProperty(required=true, example="客户id")
	private String clientId;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public List<AddProduct> getProducts() {
		return products;
	}
	public void setProducts(List<AddProduct> products) {
		this.products = products;
	}
	public String getClientId() {
		return clientId;
	}
	public void setClientId(String clientId) {
		this.clientId = clientId;
	}
	@Override
	public String toString() {
		return "EditDto [id=" + id + ", products=" + products + ", clientId=" + clientId + "]";
	}
}
